

import axios from "axios";

// 查询学生历史请假

const leaveHistory = async (res) =>{

    let { student_id } = res ;

    let response = await axios.get(`/select/select-leave-history?student_id=${student_id}`)

    if (response.status == 200 ){
        return response.data;
    }else{
        return 'error'
    }

}


export default leaveHistory;

